package com.zhz.model.system;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhz.common.tool.mybatisplus.base.dal.entity.BasePO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * @author zhouhengzhe
 * @date 2023/3/21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "pe_permission")
public class Permission extends BasePO {
    /**
     * 权限描述
     */
    @TableField(DESCRIPTION)
    private String description;

    /**
     * 权限名称
     */
    @TableField(NAME)
    private String name;

    /**
     * 权限类型 1为菜单 2为功能 3为API
     */
    @TableField(TYPE)
    private Integer type;

    /**
     * 主键
     */
    @TableField(PID)
    private String pid;

    @TableField(CODE)
    private String code;

    /**
     * 企业可见性 0：不可见，1：可见
     */
    @TableField(EN_VISIBLE)
    private Integer enVisible;

    public static final String DESCRIPTION = "description";

    public static final String NAME = "name";

    public static final String TYPE = "type";

    public static final String PID = "pid";

    public static final String CODE = "code";

    public static final String EN_VISIBLE = "en_visible";
}